<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>景区管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="./css/xadmin.css" media="all">
  <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  <script src="./lib/layui/layui.js" charset="utf-8"></script>
  <script type="text/javascript" src="./js/xadmin.js"></script>
  <script type="text/javascript" src="./js/common.js"></script>
  <script type="text/javascript" src="./js/ajax.js"></script>
  <script src="./js/module/scenic.js" charset="utf-8"></script>

</head>
<body class="layui-anim layui-anim-up">
  <div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">监控管理</a>
            <a href="">首页</a>
            <a>
              <cite>景区管理</cite></a>
          </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:location.replace(location.href);" title="刷新">
      <i class="layui-icon" style="line-height:30px">ဂ</i></a>
  </div>

  <div class="x-body">
    <div class="layui-row">
      <form class="layui-form layui-col-md12 x-so">
        <input type="text" name="name" id="name" placeholder="请输入景区名称" autocomplete="off"
               class="layui-input">
        <input class="layui-input" placeholder="创建时间" name="createTime" id="createTime">
        <a class="layui-btn" data-type="reload">搜索</a>
      </form>
    </div>

    <xblock>
      <button class="layui-btn" onclick="x_admin_show('新增景区','./scenic-add.html',500,500)" data-type="getCheckData">
        新增
      </button>
    </xblock>
    <table class="layui-table" id="tableId" lay-filter="user"></table>
  </div>

  <script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  </script>
  <script type="text/html" id="statusTpl">
      {{#  if(d.status == '2'){ }}
      <span style="color: #F581B1;">{{ '下线' }}</span>
      {{#  } else if(d.status == '1') { }}
      {{ '正常' }}
      {{#  } else { }}
      <span style="color: #F581B1;">{{ '下线' }}</span>
      {{# } }}
  </script>
</body>
</html>